<?php

require_once 'funzioni.php';
require_once 'config.php';
if (isset($_GET['lang']))
{
	if ($_GET['lang']== 'it' || $_GET['lang']=='en')
	
	{$lang=$_GET['lang'];
}
else {
	$lang='it';
}
}
else {
	$lang='it';
}

if (isset($_GET['section']))
{
if (isCorrectSection($_GET['section']))
{
	$section=$_GET['section'];
}	
}
else 
{
	
}

if (isset($id)&& isset($lang))
{
$pages = getAllPagesBySection($section, $lang);
}